package com.xunyin.modules.mtstore.service;

import com.xunyin.common.service.BaseService;
import com.xunyin.modules.mtstore.domain.MtStoreRoom;
import com.xunyin.modules.shareorder.service.dto.ShareCountDto;
import com.xunyin.modules.storeroom.param.TStoreRoomQueryParam;
import com.xunyin.modules.storeroom.service.dto.TStoreRoomQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;


/**
 * 服务设施业务接口
 * <p>
 * Created by xunyin
 * CopyRight 讯音云商 https://www.tonetn.com
 */
public interface MtStoreRoomService extends BaseService<MtStoreRoom> {

    /**
     * 查询数据分页
     *
     * @param criteria 条件
     * @param pageable 分页参数
     * @return Map<String, Object>
     */
    Map<String, Object> queryAll(TStoreRoomQueryCriteria criteria, Pageable pageable);

    /**
     * 查询所有数据不分页
     *
     * @param criteria 条件参数
     * @return List<TStore>
     */
    List<MtStoreRoom> queryAll(TStoreRoomQueryCriteria criteria);

    List<MtStoreRoom> listRoom(TStoreRoomQueryParam queryParam);

    List<ShareCountDto> findRoomName(Integer storeId);

    MtStoreRoom queryStoreRoomById(Integer id);

    void updateRoomOnlineStatus(Integer id,  String roomOnlineStatus);
}
